import {
  SUPPLIER_CATEGORY_SELECT_LIST,
  OPERATION_TYPE_SELECT_LIST,
  // DOCUMENT_STATUS_SELECT_LIST,
  APPROVAL_STATUS_SELECT_LIST,
} from '@/pages/supplier/constants/common'
import { getInitialFieldsValue } from '@/pages/supplier/utils';
// 供应商管理 - 待审批列表
const FORM_ITEM_LIST = [
  { prop: 'supplierCode', label: '供应商代码', type: 'input', },
  { prop: 'supplierName', label: '供应商名称', type: 'input', },
  { prop: 'supplierClassify', label: '供应商分类', type: 'select', clearable: true, options: SUPPLIER_CATEGORY_SELECT_LIST },
  { prop: 'mainCategoryId', label: '主营品类', type: 'categorySelect', },
  // { prop: 'operationType', label: '操作类型', type: 'select', clearable: true, options: OPERATION_TYPE_SELECT_LIST, },
  { prop: 'processDocumentStatus', label: '单据状态', type: 'select', clearable: true, options: APPROVAL_STATUS_SELECT_LIST, },
  { prop: 'processDocumentsOperationType', label: '操作类型', type: 'select', clearable: true, options: OPERATION_TYPE_SELECT_LIST, },
  { prop: 'createUser', label: '发起人', type: 'input', },
  { prop: 'createTime', label: '发起时间', type: 'datePicker', },
  { prop: 'managementAreaId', label: '管理区域', type: 'managementArea', },
]
const INITIAL_FIELDS_VALUE = getInitialFieldsValue(FORM_ITEM_LIST)
const TABLE_COLUMNS = [
  { title: '序号', key: 'index', width: 50 },
  { title: '供应商代码', key: 'supplierCode', },
  { title: '供应商名称', key: 'supplierName', },
  { title: '供应商分类', key: 'supplierClassifyName', },
  { title: '管理区域', key: 'managementAreaName', },
  // { title: '单据类型', key: 'processDocumentsOperationTypee', },
  { title: '单据类型', key: 'processDocumentsOperationTypeName', },
  // { title: '单据状态', key: 'processDocumentStatus', },
  { title: '单据状态', key: 'processDocumentStatusName', },
  { title: '发起人', key: 'createUser', width: 80, },
  { title: '发起时间', key: 'createTime', width: 160, },
]
export {
  INITIAL_FIELDS_VALUE,
  FORM_ITEM_LIST,
  TABLE_COLUMNS
}
